<?php

return [
    'auth' => [
        // admin
        [
            'rule' => 'admin',
            'label' => '管理员',
            'children' => [
                [
                    'label' => '列表',
                    'rule' => 'admin/index',
                ],
                [
                    'label' => '查看',
                    'rule' => 'admin/detail',
                ],
                [
                    'label' => '添加',
                    'rule' => 'admin/add',
                ],
                [
                    'label' => '编辑',
                    'rule' => 'admin/save',
                ],
                [
                    'label' => '删除',
                    'rule' => 'admin/del',
                ],
            ]
        ],
        // role
        [
            'rule' => 'role',
            'label' => '角色',
            'children' => [
                [
                    'label' => '列表',
                    'rule' => 'role/index',
                ],
                [
                    'label' => '查看',
                    'rule' => 'role/detail',
                ],
                [
                    'label' => '权限',
                    'rule' => 'role/auth',
                ],
                [
                    'label' => '添加',
                    'rule' => 'role/add',
                ],
                [
                    'label' => '编辑',
                    'rule' => 'role/save',
                ],
                [
                    'label' => '删除',
                    'rule' => 'role/del',
                ],
            ]
        ],
        [
            'rule' => 'ads',
            'label' => '广告',
            'children' => [
                [
                    'rule' => 'ads.index',
                    'label' => '广告管理',
                    'children' => [
                        [
                            'label' => '查看列表',
                            'rule' => 'ads/index.index',
                        ],
                        [
                            'label' => '新增页面',
                            'rule' => 'ads/index.add',
                        ],
                        [
                            'label' => '编辑页面',
                            'rule' => 'ads/index.edit',
                        ],
                        [
                            'label' => '保存数据',
                            'rule' => 'ads/index.save',
                        ],
                        [
                            'label' => '删除数据',
                            'rule' => 'ads/index.delete',
                        ]
                    ]
                ]
            ]
        ],
        [
            'rule' => 'member',
            'label' => '用户',
            'children' => [
                [
                    'rule' => 'member.index',
                    'label' => '用户管理',
                    'children' => [
                        [
                            'label' => '查看列表',
                            'rule' => 'member/index.index',
                        ],
                        [
                            'label' => '编辑页面',
                            'rule' => 'member/index.edit',
                        ],
                    ]
                ]
            ]
        ],
        [
            'rule' => 'order',
            'label' => '订单',
            'children' => [
                [
                    'rule' => 'order.index',
                    'label' => '订单管理',
                    'children' => [
                        [
                            'label' => '查看列表',
                            'rule' => 'order/index.index',
                        ]
                    ]
                ]
            ]
        ],
        [
            'rule' => 'video',
            'label' => '微电影',
            'children' => [
                [
                    'rule' => 'video.index',
                    'label' => '微电影管理',
                    'children' => [
                        [
                            'label' => '查看列表',
                            'rule' => 'video/index.index',
                        ],
                        [
                            'label' => '新增页面',
                            'rule' => 'video/index.add',
                        ],
                        [
                            'label' => '编辑页面',
                            'rule' => 'video/index.edit',
                        ],
                        [
                            'label' => '保存数据',
                            'rule' => 'video/index.save',
                        ],
                        [
                            'label' => '删除数据',
                            'rule' => 'video/index.delete',
                        ]
                    ]
                ]
            ]
        ]
    ],
];